package com.day06.homework;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class GBK2UTF {
    public static void main(String[] args) {
        BufferedReader br;
        BufferedWriter bw;
        String tmp = null;
        try {
            br = new BufferedReader(new FileReader("Source.java"));
            bw = new BufferedWriter(new FileWriter("Source2.java"));
            tmp = br.readLine();
            while (tmp != null) {
                bw.write(tmp);
                tmp = br.readLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
